<template>
  <view class="page">
    <img class="loading" src="@/static/image/loading.png" alt="" />
  </view>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import store from '@/store'

onMounted(() => {
  store.dispatch('setUserInfo')
})
</script>

<style lang="scss" scoped>
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 200rpx;
}

.loading {
  width: 50rpx;
  height: 50rpx;
  animation: spin 1s steps(8) infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
</style>
